package com.songtech.auth.resource.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "resource")
public class Resources {
	// id，主键
	@Id
	@Column(name = "id")
	private String id;
	//code标识
	@Column(name= "code")
	private String code;
	//名称
	@Column(name= "name")
	private String name;
	//url地址
	@Column(name= "url")
	private String url;
	/**
	 * 资源类型，"menu"、"button"
	 */
	@Column(name= "type")
	private String type;
	/** 备注 */
	@Column(name= "note")
	private String note;
	/** 父资源ID */
	@Column(name= "parent_id")
	private String parentId;
	/**
	 * 菜单资源等级，1级菜单，2级菜单等
	 */
	@Column(name= "level")
	private int level;
	/**
	 * 资源排序
	 */
	@Column(name= "res_order")
	private String resOrder;
	/**
	 * 状态
	 */
	@Column(name= "state")
	private int state;
	/**
	 * 新增时间
	 */
	@Column(name= "create_time")
	private Date createTime;
	/**
	 * 新增人
	 */
	@Column(name= "create_user")
	private String createUser;
	/**
	 * 修改时间
	 */
	@Column(name= "update_time")
	private Date updateTime;
	/**
	 * 修改人
	 */
	@Column(name= "update_user")
	private String updateUser;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public String getResOrder() {
		return resOrder;
	}
	public void setResOrder(String resOrder) {
		this.resOrder = resOrder;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
}
